package bsh;

import bsh.meta.Scope;

/**
 * A delayed method compilation. Has the scope that declared the method, as well as the node that implements the method
 * 
 * @author takeshi
 */
public class DelayedMethod {
    private final BSHMethodDeclaration methodDeclaration;

    private final Scope declaringScope;

    /**
     * C'tor
     * 
     * @param methodDeclaration the method declaration node
     * @param declaringScope the declaring scope
     */
    public DelayedMethod(BSHMethodDeclaration methodDeclaration, Scope declaringScope) {
        super();
        this.methodDeclaration = methodDeclaration;
        this.declaringScope = declaringScope;
    }

    /**
     * @return the methodDeclaration
     */
    public BSHMethodDeclaration getMethodDeclaration() {
        return this.methodDeclaration;
    }

    /**
     * @return the declaringScope
     */
    public Scope getDeclaringScope() {
        return this.declaringScope;
    }

}